package com.linyx.simpleboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.linyx.simpleboot.service.SqlSessionService;

import javax.annotation.Resource;

@RestController
@RequestMapping("scan")
public class ScanController {
	
	@Autowired
	private SqlSessionService sqlSessionService;


	
	
	@PostMapping(path = "apisql")
	public String apisql(@RequestBody String name) {
	
		return sqlSessionService.getSql();
	}

}
